package cn.net.withub.dataCollector.common.test.enumDemo;


/*值一般是大写的字母，多个值之间以逗号分隔。同时我们应该知道的是枚举类型可以
像类(class)类型一样，定义为一个单独的文件，当然也可以定义在其他类内部*/
//枚举类型，使用关键字enum   参考:https://blog.csdn.net/javazejian/article/details/71333103
//自动继承自java.lang.Enum类
public enum Day {
    MONDAY, TUESDAY, WEDNESDAY,
    THURSDAY, FRIDAY, SATURDAY, SUNDAY;
    public static void main(String[] args) {
        System.out.println("dwadadaw");
    }
}

class EnumDemo{

    public static void main(String[] args) {
        Day day = Day.MONDAY;
        System.out.println("day:" + day);
    }
}
//定义枚举类型
enum Week {
    MONDAY, TUESDAY, WEDNESDAY,
    THURSDAY, FRIDAY, SATURDAY, SUNDAY
}
enum Sex{
    man,woman
}
